<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
    <script src="../../jquery-2.1.3.min.js" type="text/javascript" charset="utf-8"></script>
    <title>详情-买入数量</title>

    <style type="text/css">
        body,
        html {
            overflow-x: hidden;
            background-color: #f5f5f5 !important;
        }

        header {
            color: #FFFFFF;
            background: -webkit-linear-gradient(left top, #0F9BEB, #1569C8);
            /* Safari 5.1 - 6.0 */
            background: -o-linear-gradient(bottom right, #0F9BEB, #1569C8);
            /* Opera 11.1 - 12.0 */
            background: -moz-linear-gradient(bottom right, #0F9BEB, #1569C8);
            /* Firefox 3.6 - 15 */
            background: linear-gradient(to bottom right, #0F9BEB, #1569C8);
            background: -webkit-linear-gradient(left top, #0F9BEB, #1569C8);
            /* 标准的语法*/
            box-shadow: 0 0px 7px #0c5ebb;
        }

        .aui-bar-nav {
            top: 0;
            line-height: 2.25rem;
            background-color: #03a9f4;
            color: #ffffff;
            padding: 15px 0 2px 0;
        }

        .aui-bar-nav .aui-pull-right {
            padding: 0 0rem;
            margin: 0 0.75rem 0 0px;
        }

        .aui-pull-right img {
            max-width: 48%;
            display: block;
        }

        .huilv-li {
            padding-left: 0 !important;
        }

        .huilv-inner {
            padding-right: 0 !important;
            padding-bottom: 0 !important;
        }

        .huilv-content {
            padding: 10px 0px 5px 0;
        }

        .huilv-row {
            margin: 15px 0 1px 0;
            border-bottom: 1px solid #e6e6e6;
            border-top: 1px solid #e6e6e6;
            /*padding: 10px 0;*/
        }

        .huilv-title {
            font-weight: bold;
            font-size: 27px;
            color: #1569c8;
        }

        .huilv-unit {
            font-size: 12px;
            margin-left: 4px;
            color: #000000;
        }

        .btc-p {
            color: #000000;
            font-weight: bold;
            font-size: 12px;
        }

        p.yingkui-p,
        p.bili-p {
            color: #000000;
            font-size: 12px;
            margin: 10px auto;
        }

        .huilv-yingkui-block {
            border-right: 1px solid #E6E6E6;
        }

        .huilv-yingkui-block,
        .huilv-bili-block {
            /*padding-right: 0 !important;
            padding-left: 0 !important;*/
            padding: 0.5rem 0 !important;
        }

        .yingkui-hl,
        .yingkui-zf,
        .bili-hl,
        .bili-zf {
            text-align: initial;
            font-size: 14px;
            color: red;
        }

        .list-xinxi {
            margin-bottom: 0 !important;
        }

        .aui-content.aui-margin-b-15 {
            margin-bottom: 0 !important;
        }

        .more-p {
            height: 2.25rem;
            font-size: 0.7rem;
            padding-left: 15px;
            color: #999999;
            line-height: 45px;
        }

        .aui-list-item-right {
            color: #000000 !important;
        }

        /*.more-ul li>div,
        .jys-ul li>div {
            border-bottom: 1px solid #E6E6E6 !important;
        }*/

        .jys-list-header {
            font-size: 0.7rem !important;
            color: #999999 !important;
            padding-left: 0.75rem;
            margin-right: 0.75rem;
        }

        .jys-zxj {
            font-size: 0.8rem !important;
            color: #999999 !important;
        }

        .cjl-spans-content span {
            font-size: 0.6rem !important;
            color: #999999 !important;
        }

        section.aui-content {
            margin-bottom: 10px;
        }

        .aui-list .aui-list-item-inner {
            position: relative;
            min-height: 2.3rem;
            padding-right: 0rem !important;
            margin-right: 0.75rem;
        }

        .aui-list .aui-list-item-right,
        .aui-list-item-title-row em {
            font-size: 0.7rem;
            max-width: 50%;
            color: #999999 !important;
            text-align: -webkit-right;
        }

        .jys-zhangfu {
            color: #e61303;
        }

        .aui-grid .aui-iconfont {
            position: relative;
            z-index: 20;
            top: -0.85rem;
            height: 1.4rem;
        }

        p.share_title {
            padding-bottom: 0.75rem;
        }

        .aui-col-xs-3.aui-sharebox-btn {
            margin: 0.5rem 0 0px 0;
        }

        a.aui-pull-right.aui-btn.a-wc-btn {
            height: 1.05rem;
            line-height: 1.05rem !important;
            border: 0.05rem solid #ffffff;
            font-size: 0.6rem;
            padding: 0.45rem 0.65rem;
            margin-top: 0.55rem;
            border-radius: 0.15rem;
        }

        span.span-wc-btn {
            line-height: 1.5rem !important;
        }

        .aui-bar-nav {
            top: 0;
            height: 2.2rem;
            line-height: 2.2rem;
            background-color: #03a9f4;
            color: #ffffff;
            padding: 1rem 0 0px 0;
        }

        li.aui-list-item.li-mairu {
            height: 2.65rem;
            line-height: 2.65rem;
            box-shadow: 0.05rem 0 0.05rem #cccccc;
        }

        .aui-list-item-title.aui-text-info {
            padding-left: 0.45rem;
            color: #000000 !important;
        }
    </style>

</head>

<body>
<header class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn" onclick="backAddPage()">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">买入价格</div>
    <a class="aui-pull-right aui-btn a-wc-btn" onclick="saveIpt()">
        <span class="span-wc-btn">保存</span>
    </a>

    <!--<div class="aui-info-item sc-item"><img src="../../image/btn/nav_sz_1@2x.png" /></div>-->
</header>

<section class="aui-content">
    <ul class="aui-list more-ul">
        <li class="aui-list-item li-mairu">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title aui-text-info"><input type="number" name="price" id="price" value="0"
                                                                      placeholder="0.00" autofocus="autofocus"/></div>
                <div class="aui-list-item-right"><span>单位：</span>CNY</div>
            </div>
        </li>
        <!--第二列表 Start-->
    </ul>
</section>

</body>
<script src="../../script/api.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="../../script/aui-sharebox.js"></script>
<script type="text/javascript" src="../../script/tool.js"></script>
<script type="text/javascript">
  $(document).ready(function () {
    var y = sessionStorage.getItem('priceIptArr');
    $('input[type="number"]').val(y);
    console.log(y);
    $("input").focus();

  })

  function backAddPage() {
    saveIpt();
    // localStorage.removeItem('priceIpt');

  }

  function saveIpt() {
    sessionStorage.setItem('priceIptArr', parseInt($('#price').val()));
    backBefore();
  }


</script>

</html>
